package com.movie.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "角色数据传输对象")
public class RoleDTO {
    
    @Schema(description = "角色ID")
    private Long id;
    
    @Schema(description = "角色名称")
    private String name;
    
    @Schema(description = "角色描述")
    private String description;
    
    @Schema(description = "权限列表")
    private List<PermissionDTO> permissions;
    
    @Schema(description = "用户数量")
    private Integer userCount;
    
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
    
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}